const profiles = document.querySelectorAll('.profile');
for (const e of profiles) {
    e.addEventListener('click', ()=>{
        console.log('click');
        document.querySelector('.detail').classList.add('active')
    })
}

document.querySelector('.close').addEventListener('click', ()=>{
    document.querySelector('.detail').classList.remove('active')
})